package com.zh.service.impl;
import java.math.BigDecimal;
import java.util.Date;

import com.zh.pojo.domain.DriverSummary;
import com.zh.mapper.DriverSummaryMapper;
import com.zh.service.IDriverSummaryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 司机结算对象 服务实现类
 * </p>
 *
 * @author 初四
 * @since 2024-06-13
 */
@Service
public class DriverSummaryServiceImpl extends ServiceImpl<DriverSummaryMapper, DriverSummary> implements IDriverSummaryService {

    /**
     * 保存司机结算对象
     * @param id
     */
    @Override
    public void saveDriverSummary(Long id) {
        DriverSummary driverSummary = new DriverSummary();
        driverSummary.setId(id);
        driverSummary.setCreateTime(new Date());
        super.save(driverSummary);
    }
}
